package com.ruantu.clothing.dao;

import com.ruantu.clothing.entity.TailorChildren;

import java.util.List;

public interface TailorChildrenMapper {
    int deleteByPrimaryKey(String id);

    int insert(TailorChildren record);

    int insertSelective(TailorChildren record);

    TailorChildren selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(TailorChildren record);

    int updateByPrimaryKey(TailorChildren record);

    /**
     * 批量插入子表
     *
     * @param tailorChildrenList
     * @return
     */
    int save(List<TailorChildren> tailorChildrenList);

    /**
     * 根据裁剪id删除
     *
     * @param tailorId
     * @return
     */
    int delByTailorId(String tailorId);
}